package Utility;

/**
 *	Utility which will help in writing and reading to/fro sockets. 
 */
public class SocketReaderWriter {
	
	PaxosMessageReader paxosMessageReader;
	PaxosMessageWriter paxosMessageWriter;
	
	public SocketReaderWriter(){
		paxosMessageReader = new PaxosMessageReaderImpl();
		paxosMessageWriter = new PaxosMessageWriterImpl();
	}
	
	public PaxosMessageReader getPaxosMessageReader() {
		return paxosMessageReader;
	}
	public void setPaxosMessageReader(PaxosMessageReader paxosMessageReader) {
		this.paxosMessageReader = paxosMessageReader;
	}
	public PaxosMessageWriter getPaxosMessageWriter() {
		return paxosMessageWriter;
	}
	public void setPaxosMessageWriter(PaxosMessageWriter paxosMessageWriter) {
		this.paxosMessageWriter = paxosMessageWriter;
	}
}
